package bean.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import commons.jdbc.annotation.Column;
import commons.jdbc.annotation.PrimaryKey;
import commons.jdbc.annotation.Table;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * bean.pojo
 * User: xlh
 * Date: 2024/12/20 10:00
 * motto:推到高塔
 * Description:
 * Version: V1.0
 */@Data
@Table(value = "equipment_maintenance")
public class Maintenance {

    @Column("maintenance_record_id")  //这是数据的字段  字段名和属性名一致
    @PrimaryKey(isAutoIncrease = true)  //这字段是主键
    private Integer maintenanceRecordId;
    @Column(value = "maintenance_item")   //这是数据的字段  字段名和属性名不一致
    private String maintenanceItem;
    @Column("maintenance_amount")
    private Double    maintenanceAmount;

    @Column(value = "processing_result")
    private String processingResult;
    @Column(value = "start_time")
    @JSONField(format = "yyyy_MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Column(value = "maintenance_name")
    private String maintenanceName;

    @Column(value = "maintenance_address")
    private String maintenanceAddress;
    @Column(value = "start_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
    @Column(value = "note")
    private String note;


    @Column(value = "reasons_reporting")
    private String reasonsReporting;
}
